package com.itheima.day06.myLocalDateTime.test1;

import java.time.LocalDateTime;

public class Test {
    public static void main(String[] args) {
        // public static LocalDateTime now() 获取当前系统时间
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        // public static LocalDateTime of(年, 月, 日, 时, 分, 秒) 使用指定年月日和时分秒初始化一个LocalDateTime对象
        LocalDateTime of = LocalDateTime.of(2020, 03, 22, 17, 14, 59);
        System.out.println(of);
    }
}
